package com.ktwlrj.core.feign.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 阿里云身份认证证正面结果
 *
 * @author zhouxuanhong
 * @date 2019-07-08 12:22
 * @since JDK1.8
 */
@Data
public class McAliIdCardInfoDto implements Serializable {
    private static final long serialVersionUID = -4070216421089900512L;

    @ApiModelProperty(name = "realName", value = "真实姓名")
    private String realName;

    @ApiModelProperty(name = "certificationType", value = "证件类型,此出固定为:10-身份证")
    private String certificationType = "10";

    @ApiModelProperty(name = "certificationId", value = "证件号码")
    private String certificationId;

    @ApiModelProperty(name = "实名认证类型", value = "认证类型,次数固定:2-银行卡认证+身份证")
    private Integer identityType = 2;

    @ApiModelProperty(name = "address", value = "身份证地址")
    private String address;

    @ApiModelProperty(name = "gender", value = "性别")
    private Integer gender;

    @JsonFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(name = "effective", value = "证件有效开始时间")
    private Date effective;

    @JsonFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(name = "effectiveEnd", value = "证件有效结束时间")
    private Date effectiveEnd;

    @ApiModelProperty(name = "issue", value = "证件签发机关")
    private String issue;

    @JsonFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(name = "birthday", value = "生日")
    private Date birthday;

    @ApiModelProperty(name = "nationality", value = "名族")
    private String nationality;
}
